package com.smallprogram.www.comm;

/**
 * 服务器响应码
 */
public enum ServiceCode {

    /*
     * 响应失败
     */
    FAIL(404,"fail"),

    /*
     * 响应正常
     */
    SEUCCESS(200,"success"),
    /*
     * 网络超时异常
     */
    TIME_OUT(405,"参数异常"),
    /*
     * 服务器异常
     */
    SERVER_ERROR(500,"服务器异常");

    private final Integer code;
    private final String message;

    private ServiceCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }

}
